using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using System;

public class transform : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        Vector3 position = transform.position;
        if (position.x < 5.0f)
        {
            float speed = 3.0f;
            float time = Time.deltaTime;
            position.x = position.x + speed*time;
            float x = position.x;
            position.y = -0.15f * (x + 9.0f) * (x - 5.0f) - 3.0f;
            transform.position = position;
        } 
    }
}
